package com.heima.factory;

import com.heima.dao.Brand;
import com.heima.dao.impl.BrandDaoImpl;
import org.springframework.beans.factory.FactoryBean;

public class BrandDaoFactoryBean implements FactoryBean<Brand> {
    @Override
    public Brand getObject() throws Exception {
        System.out.println("准备参数，初始化");
        return new BrandDaoImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return Brand.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
